package com.bytic.miaosha.constant;

public class KeyConstant {

    // 默认有效期：0 永不过期
    public static final int DEFALUT_KEY_EXPIRES = 0;

    /**
     * 秒杀用户 key 常量
     */
    public static final String COOKIE_NAME_TOKEN = "token";
    public static final int COOKIE_TOKEN_EXPIRES = 3600 * 24 * 2;
    public static final String TOKEN_KEY_PREXIF = "tk";
    public static final String USER_KEY_PREXIF = "id";

    /**
     * 秒杀商品key常量
     */
    public static final int GOODS_LIST_EXPIRES = 60;
    public static final String GOODS_LIST_PREFIX = "gl";
    public static final String GOODS_DETAIL_PREFIX = "gd";

    /**
     * 秒杀订单常量
     */
    public static final String MIAOSHA_ORDER_PREFIX = "mug";


}
